<?php
error_reporting(E_ERROR | E_PARSE);
$servername = "localhost";
$username = "root";
$password = "wx25fbbc634ac5586b";
$dbname = "card";

$openid=$_GET["openid"];
$name=$_GET["name"];
$phone=$_GET["phone"];
$occupation=$_GET["occupation"];
$company=$_GET["company"];
$section=$_GET["section"];
$telephone=$_GET["telephone"];
$phones=$_GET["phones"];
$email=$_GET["email"];
$fax=$_GET["fax"];
$address=$_GET["address"];
$webadd=$_GET["webadd"];
$shop=$_GET["shop"];
$wechat=$_GET["wechat"];
$tencent=$_GET["tencent"];
$microblog=$_GET["microblog"];
$public=$_GET["public"];

// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
$program_char = "utf8" ;
mysqli_set_charset( $conn , $program_char );
$sql="UPDATE `mingpian` SET `openid`='$openid',`phone`='$phone',`name`='name',`occupation`='$occupation',`company`='$company',`section`='$section',`telephone`='telephone',`phones`='$phones',`email`='email',`fax`='$fax',`address`='$address',`webadd`='webadd',`shop`='$shop',`wechat`='$wechat',`tencent`='$tencent',`microblog`='microblog',`public`='$puublic' WHERE name='$name'";

$result = mysqli_query($conn,$sql);
$res=mysqli_fetch_array($result,MYSQLI_ASSOC);
echo json_encode($res);
?>